﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AG.Editor.Core
{
    public class AGTextureFont
    {
        /// <summary>
        /// 编辑时的唯一标识
        /// </summary>
        public Guid UniqueId { get; private set; }
        /// <summary>
        /// 数字编号，发布之后唯一
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Caption { get; set; }
        public List<AGTextureFontChar> CharList { get; set; }

        /// <summary>
        /// 所在材质
        /// </summary>
        public string TextureFile { get; set; }

        public bool HasChanged { get; set; }

        public AGTextureFont()
        {
            UniqueId = Guid.NewGuid();
            CharList = new List<AGTextureFontChar>();
        }

        public AGTextureFont(Guid uniqueId)
        {
            UniqueId = uniqueId;
            CharList = new List<AGTextureFontChar>();
        }
    }
}
